home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / TerminalTools.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  3KB  |  130 lines

  1. /*
  2.      File:        TerminalTools.h
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __TERMINALTOOLS__
  19. #define __TERMINALTOOLS__
  20.  
  21. #ifndef __DIALOGS__
  22. #include <Dialogs.h>
  23. #endif
  24. #ifndef __TERMINALS__
  25. #include <Terminals.h>
  26. #endif
  27.  
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31.  
  32. #if PRAGMA_IMPORT_SUPPORTED
  33. #pragma import on
  34. #endif
  35.  
  36. #if PRAGMA_ALIGN_SUPPORTED
  37. #pragma options align=mac68k
  38. #endif
  39.  
  40. #if FOR_SYSTEM7_ONLY
  41.  
  42. enum {
  43.     tdefType                    = 'tdef',
  44.     tvalType                    = 'tval',
  45.     tsetType                    = 'tset',
  46.     tlocType                    = 'tloc',
  47.     tscrType                    = 'tscr',
  48.     tbndType                    = 'tbnd',
  49.     tverType                    = 'vers',                        /* messages */
  50.     tmInitMsg                    = 0,
  51.     tmDisposeMsg                = 1,
  52.     tmSuspendMsg                = 2,
  53.     tmResumeMsg                    = 3,
  54.     tmMenuMsg                    = 4,
  55.     tmEventMsg                    = 5,
  56.     tmActivateMsg                = 6,
  57.     tmDeactivateMsg                = 7,
  58.     tmGetErrorStringMsg            = 8,
  59.     tmIdleMsg                    = 50,
  60.     tmResetMsg                    = 51,
  61.     tmKeyMsg                    = 100,
  62.     tmStreamMsg                    = 101,
  63.     tmResizeMsg                    = 102,
  64.     tmUpdateMsg                    = 103,
  65.     tmClickMsg                    = 104,
  66.     tmGetSelectionMsg            = 105,
  67.     tmSetSelectionMsg            = 106,
  68.     tmScrollMsg                    = 107,
  69.     tmClearMsg                    = 108
  70. };
  71.  
  72.  
  73. enum {
  74.     tmGetLineMsg                = 109,
  75.     tmPaintMsg                    = 110,
  76.     tmCursorMsg                    = 111,
  77.     tmGetEnvironsMsg            = 112,
  78.     tmDoTermKeyMsg                = 113,
  79.     tmCountTermKeysMsg            = 114,
  80.     tmGetIndTermKeyMsg            = 115,                            /* messages for validate DefProc    */
  81.     tmValidateMsg                = 0,
  82.     tmDefaultMsg                = 1,                            /* messages for Setup DefProc    */
  83.     tmSpreflightMsg                = 0,
  84.     tmSsetupMsg                    = 1,
  85.     tmSitemMsg                    = 2,
  86.     tmSfilterMsg                = 3,
  87.     tmScleanupMsg                = 4,                            /* messages for scripting defProc    */
  88.     tmMgetMsg                    = 0,
  89.     tmMsetMsg                    = 1,                            /* messages for localization defProc  */
  90.     tmL2English                    = 0,
  91.     tmL2Intl                    = 1
  92. };
  93.  
  94. struct TMSearchBlock {
  95.     StringHandle                     theString;
  96.     Rect                             where;
  97.     TMSearchTypes                     searchType;
  98.     TerminalSearchCallBackUPP         callBack;
  99.     short                             refnum;
  100.     struct TMSearchBlock *            next;
  101. };
  102. typedef struct TMSearchBlock TMSearchBlock;
  103.  
  104. typedef TMSearchBlock *TMSearchBlockPtr;
  105. struct TMSetupStruct {
  106.     DialogPtr                         theDialog;
  107.     short                             count;
  108.     Ptr                             theConfig;
  109.     short                             procID;                        /* procID of the tool */
  110. };
  111. typedef struct TMSetupStruct TMSetupStruct;
  112.  
  113. typedef TMSetupStruct *TMSetupPtr;
  114. #endif
  115.  
  116. #if PRAGMA_ALIGN_SUPPORTED
  117. #pragma options align=reset
  118. #endif
  119.  
  120. #if PRAGMA_IMPORT_SUPPORTED
  121. #pragma import off
  122. #endif
  123.  
  124. #ifdef __cplusplus
  125. }
  126. #endif
  127.  
  128. #endif /* __TERMINALTOOLS__ */
  129.  
  130.